//---------------------------------------------------------------------------
#ifndef basesH
#define basesH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include "main.h"
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TBaseForm : public TForm
{
__published:	// IDE-managed Components
    TEdit *HexEdit;
    TEdit *OctEdit;
    TEdit *BinEdit;
    TLabel *Label1;
    TLabel *Label2;
    TLabel *Label3;
    TLabel *Label4;
    TLabel *Label5;
    TLabel *FloatLabel;
    TLabel *DoubleLabel;
    TTrackBar *BaseTrack;
    TLabel *BaseLabel;
    void __fastcall FormActivate(TObject *Sender);
    void __fastcall FormDeactivate(TObject *Sender);
    void __fastcall FormHide(TObject *Sender);
    void __fastcall FormKeyPress(TObject *Sender, char &Key);
    void __fastcall FullSel(TObject *Sender);
    void __fastcall BaseTrackChange(TObject *Sender);
    
private:	// User declarations
    void __fastcall CreateParams(TCreateParams &Params);

public:		// User declarations
    __fastcall TBaseForm(TComponent* Owner);
    void __fastcall SetVal(double);
    AnsiString __fastcall Int64ToHex(__int64);
    AnsiString __fastcall Int64ToOct(__int64);
    AnsiString __fastcall Int64ToBin(__int64);
    __int64 __fastcall ToDecimal(AnsiString, int);
    __int64 __fastcall ExtendSign(__int64 val, int base);
};
//---------------------------------------------------------------------------
extern PACKAGE TBaseForm *BaseForm;
//---------------------------------------------------------------------------
#endif
